package com.project.service;

import java.util.List;

import com.project.entity.activity.Activity;


/**
 * 活动实体类服务接口类
 * @author chenlz
 *
 */
public interface IActivityService {
	
	public Activity getById(Long id);

	/**
	 * 获取不带分页的数据
	 * @param activity
	 * @return
	 */
	public List<Activity> queryAllList(Activity activity);

	/**
	 * 查询分页数据
	 * @return
	 */
	public List<Activity> queryList(Activity activity, int pageSize, int pageNo);
	
	/**
	 * 根据ID获取活动实体类数据
	 * @param activityDtoId
	 * @return
	 */
	public Activity queryById(Long activityDtoId, Long userId);
	
	/**
	 * 查询总条数
	 * @param activity
	 * @return
	 */
	public int queryCount(Activity activity);
	
	/**
	 * 获取带分页的数据
	 * @param resourceOrderVo
	 * @param pageSize
	 * @param pageNo
	 * @return
	 */
	public List<Activity> queryPageData(Activity activity, int pageSize, int pageNo);
	
	/**
	 * 保存
	 * @param activity
	 * @return
	 */
	public Long save(Activity activity);
	
	/**
	 * 修改
	 * @param activity
	 * @return
	 */
	public void edit(Activity activity);
	
	/**
	 * 删除
	 * @param activityDtoId
	 */
	public void deleteById(Long activityDtoId);
	
}